﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace kongjian42
{
    [Designer(typeof(TongJi_EMS._TJ_Basic.TJ_BasicControlDesigner))]
    public partial class lianjieqiao : TongJi_EMS._TJ_Basic.TJ_BasicControl
    {
        public lianjieqiao()
        {
            InitializeComponent();
        }
        private void lianjieqiao_Load(object sender, EventArgs e)
        {
            lianjieqiao_Resize(sender, e);


        }

        private void lianjieqiao_Paint(object sender, PaintEventArgs e)
        {
            Pen a = new Pen(CtrColor, 1);
            e.Graphics.DrawArc(a, x - y * 0.15f, y * 0.85f, y * 0.3f, y * 0.3f, 90, -180);

            e.Graphics.DrawLine(a, x, 0, x, y * 0.85f);
            e.Graphics.DrawLine(a, x, y * 1.15f, x, y * 2f);
            e.Graphics.DrawLine(a, 0, y, x * 2f, y);

        }

        private void lianjieqiao_Resize(object sender, EventArgs e)
        {
            this.x = this.Width / 2;
            this.y = this.Height / 2;
            //this.Refresh();
        }

    }
}